<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

trait HasLabelField
{
    /**
     * label 的字段名
     * @param string|JsExp $labelField
     * @return $this
     */
    public function labelField(string|JsExp $labelField = 'label'): static
    {
        return $this->prop("label-field", $labelField);
    }

}
